package com.liu.InterfaceDemo;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

@Component(value = "afterLog")
public class afterLog implements AfterReturningAdvice {

    public void afterReturning(Object returnValue,Method method, Object[] args, Object target) throws Throwable {
        System.out.println("之后"+returnValue + "---"+target.getClass().getName() + "类的"+method.getName() + "被执行了");
    }
}